﻿@model IEnumerable<HomePortal.Models.Photo>
@using System.Web.Mvc.Html
@{
    ViewBag.Title = "Фотогалерея";  
}
@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@ViewBag.Title.</h1>
                <h2>@ViewBag.Message</h2>
            </hgroup>
        </div>
    </section>
}
<br />
<div class="content" style="max-width: 960px; background: #ddd;">
    <div class="block-wrapper">
        @foreach (var item in Model)
        {
            <div class="block-level">
                <div class="photo_box">
                    @if (item.ImageData != null)
                    {
                        <img height="300" class="photo-mini" src="@Url.Action("GetImage", "Photos", new { photoId = item.ID })" alt="" onclick="window.location='/Photos/Details/@item.ID'"/>        
                    }
                </div>
            </div>
        }
    </div>
    <br />
</div>


